/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDate;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.modules.system.entity.Tenant;

/**
 * 电梯合同在保情况每日情况实体类
 *
 * @author ysq
 * @since 2023-10-09
 */
@Data
@TableName("blade_elevator_maintain_status_day")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ElevatorMaintainStatusDay对象", description = "电梯合同在保情况每日情况")
public class ElevatorMaintainStatusDay extends Tenant {

	private static final long serialVersionUID = 1L;

	/**
	 * 小区id
	 */
	@ApiModelProperty(value = "小区id")
	private Long buildingId;
	/**
	 * 电梯id
	 */
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;
	/**
	 * 服务开始时间
	 */
	@ApiModelProperty(value = "服务开始时间")
	private Date startTime;
	/**
	 * 服务结束时间
	 */
	@ApiModelProperty(value = "服务结束时间")
	private Date endTime;
	/**
	 * 保养状态 : -1:无状态，1: 脱保，2: 在保（合同期内），3：在保（合同期外），4：在保（拟定保养）
	 */
	@ApiModelProperty(value = "保养状态 : -1:无状态，1: 脱保，2: 在保（合同期内），3：在保（合同期外），4：在保（拟定保养）")
	private Integer maintainStatus;
	/**
	 * 合同id
	 */
	@ApiModelProperty(value = "合同id")
	private Long contractId;
	/**
	 * 合同来源 1:外包合同2:非外包合同
	 */
	@ApiModelProperty(value = "合同来源 1:外包合同2:非外包合同")
	private Integer fromType;
	/**
	 * 来源合同id
	 */
	@ApiModelProperty(value = "来源合同id")
	private Long fromTypeContractId;
	/**
	 * 记录时间
	 */
	@ApiModelProperty(value = "记录时间")
	private Date recordDate;

	/**
	 * 1:非年审，2:年审
	 */
	@TableField(exist = false)
	private Integer auditType;

}
